type IChartFrameType = {
  [propName in DV.EnumFrameType]: {
    type: DV.EnumFrameType;
  };
};

export {default as EnumChartType} from './EnumChartType';


/**
 * @description 组件框架依赖类型
 * @type {{panel_echarts: string, highcharts: string, panel_d3: string, panel_three: string}}
 */
export const chartFrameType: IChartFrameType = {
  echarts: {
    type: 'echarts',

  },
  hcharts:{
    type: 'hcharts'
  },
  hstock: {
    type: 'hstock'
  },
  d3: {
    type: 'd3'
  },
  three: {
    type: 'three'
  },
  html: {
    type: 'html'
  },
  bmap: {
    type: 'bmap'
  },
};


/**
 * 大屏布局适应模式枚举
 */
export const adapterModeMap = {
  stretch: {
    icon: 'icon-stretch',
    mode: 'stretch',
    label: '等比缩放',
  },
  width: {
    icon: 'icon-width',
    mode: 'width',
    label: '适应宽度',
  },
  height: {
    icon: 'icon-height',
    mode: 'height',
    label: '适应高度',
  },
  full: {
    icon: 'icon-full',
    mode: 'full',
    label: '容器铺满',
  },
  normal: {
    icon: 'icon-normal',
    mode: 'normal',
    label: '不缩放',
  },
};

/**
 * 数据源类型枚举
 */
export const EnumDataType = {
  static: {
    type: 'static',
    label: '静态JSON'
  },
  api: {
    type: 'api',
    label: 'API拉取'
  }
}
